<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal" name="editGForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>{{'编辑量表' | dyLanguage}}</strong></h3>
                    </div>
                    <div class="panel-body panel-dialog">
                        <p>{{'请按照提示编辑量表的基本信息。' | dyLanguage}}</p>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'量表名称' | dyLanguage}}</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="name" ng-model="editingGauge.name" required/>
                                </div>
                                <span class="help-block" ng-show="(editGForm.name.$untouched && !editGForm.$submitted) || editGForm.name.$valid">{{'请输入量表的名称' | dyLanguage}}</span>
                                <div ng-show="(editGForm.name.$touched || editGForm.$submitted ) && editGForm.name.$invalid">
                                    <span class="error-block" ng-show="editGForm.name.$error.required">{{'必须要输入量表的名称' | dyLanguage}}</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'量表编码' | dyLanguage}}</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" ng-model="editingGauge.code" name="code" required/>
                                </div>
                                <span class="help-block" ng-show="(editGForm.code.$untouched && !editGForm.$submitted) || editGForm.code.$valid">{{'请输入量表的编码' | dyLanguage}}</span>
                                <div ng-show="(editGForm.code.$touched || editGForm.$submitted ) && editGForm.code.$invalid">
                                    <span class="error-block" ng-show="editGForm.code.$error.required">{{'必须要输入量表的编码' | dyLanguage}}</span>
                                </div>
                            </div>
                        </div>

                        <!--<div class="form-group">-->
                        <!--<label class="col-md-3 col-xs-12 control-label">序号</label>-->
                        <!--<div class="col-md-6 col-xs-12">-->
                        <!--<div class="input-group">-->
                        <!--<span class="input-group-addon"><span class="fa fa-pencil"></span></span>-->
                        <!--<input type="text" class="form-control" ng-model="editingGauge.sort"  name="sort"  required ng-pattern="/^[1-9]\d*$/"/>-->
                        <!--</div>-->
                        <!--<span class="help-block" ng-show="(editGForm.sort.$untouched && !editGForm.$submitted) || editGForm.sort.$valid">请输入量表的序号</span>-->
                        <!--<div  ng-show="(editGForm.sort.$touched || editGForm.$submitted ) && editGForm.sort.$invalid">-->
                        <!--<span class="error-block" ng-show="editGForm.sort.$error.required">必须要输入量表的序号</span>-->
                        <!--<span class="error-block" ng-show="editGForm.sort.$error.pattern">必须是大于零的整数</span>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'是否有效' | dyLanguage}}</label>
                            <div class="col-md-6 col-xs-12 roleActive">
                                <input type="checkbox" style="width: 20px;height: 20px;" ng-model="editingGauge.active"/>
                                <span class="help-block">{{'该量表是否有效' | dyLanguage}}</span>
                            </div>
                        </div>

                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>{{'取消' | dyLanguage}}</button>
                        <button class="btn btn-info" ng-click="submit()"><i class="fa fa-check"></i>{{'确定' | dyLanguage}}</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->